﻿#include "collision.h"

// Abstract collision box class
CollisionBox::CollisionBox() : type_(CollisionBoxType::Point) {}
CollisionBox::CollisionBox(CollisionBoxType type) : type_(type) {}


// Get collision box type
CollisionBoxType CollisionBox::getType() const {
	return type_;
}

// Static method: detect collision between any two collision boxes
bool CollisionBox::checkCollision(const CollisionBox& box1, const CollisionBox& box2) {
	return box1.checkCollision(box2);
}
